package com.siwei.eqi.common;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum BatchStatusEnum {

    APPROVAL(1, "待审核"),

    COMPLETED(2, "已完成");

    private final Integer type;
    private final String desc;

    public static BatchStatusEnum getOrgTypeEnum(Integer type) {
        for (BatchStatusEnum typeEnum : values()) {
            if (typeEnum.getType().equals(type)) {
                return typeEnum;
            }
        }
        return null;
    }
}
